package com.digigames;

import android.app.Activity;
import android.content.ActivityNotFoundException;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.TextView;

public class ItemDetailActivity extends Activity {
	public static String item;
	public static String description;
	TextView txtItem;
	TextView txtDecription;

	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.item_detail);
		txtItem = (TextView) findViewById(R.id.TextViewItemDetail);
		txtDecription = (TextView) findViewById(R.id.TextViewDescriptionDetail);
		txtItem.setText(item);
		txtDecription.setText(description);
	}

	public void goBack(View view) {
		try {		
			finish();
		} catch (ActivityNotFoundException e) {
			Log.e("Error", "In goBack", e);
		}
	}

}
